home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / zkf102.zip / scripts.txt < prev    next >
Text File  |  1995-01-04  |  2KB  |  31 lines

  1. Note: You need the pro version of zk to use this feature.  However,
  2. even if you just have the free version, you can still use the
  3. scripts mentioned here, by copying them into zk.ini, deleting the
  4. zkbat line from the start of each, and surrounding each with the
  5. appropriate function formalities.  That lets you use them from the
  6. zk command line, even though you still can't invoke them directly
  7. from the operating system command line unless you have the pro
  8. version of zk.
  9.  
  10. If you're a pro version user, you will appreciate the zkbat feature
  11. because it lets you use scripts the same way you use operating system
  12. commands.  You might even want to write a large number of your own
  13. scripts, because you have a much more powerful language now than the
  14. batch command language used for ordinary batch files.  Here is how to
  15. get started writing scripts:
  16.  
  17. A zkbat script is like an ordinary batch file (*.bat) except that it
  18. has c++ code and is interpreted by zk.  The name of the script file
  19. is name.bat, where name is the name of the script.  By naming it with
  20. the .bat extension, we tell the operating system that it's an executable
  21. script, so it can be invoked directly from the operating system command
  22. line without running zk explicitly first.
  23.  
  24. To write your own zkbat script files, start with proto.bat, which tells
  25. you what to do, and also look at what.bat and bat.bat, which are scripts
  26. to display specially formatted/filtered directory listings, using various
  27. functions of the zk library (see library.txt).
  28.  
  29. To call one script from another, use the call command, e.g. "call myscript".
  30.  
  31.